import { buildServiceConfig, IServiceConfig } from './config'
import { IOnlineClassService } from './typing/service'
import { createService } from './imp'

export function createOnlineClassService(config: IServiceConfig): IOnlineClassService {
  const formattedConfig = buildServiceConfig(config)

  const service = createService(formattedConfig)

  return service
}
